package com.uwlaser.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* @author Hongchuangbin
* @date 2022-05-20
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class FactoryTreePathInfoDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Integer id;

    @ApiModelProperty(value = "父ID")
    private Integer ancestor;

    @ApiModelProperty(value = "子ID")
    private Integer descendant;

    @ApiModelProperty(value = "深度（深度为1表示自己，2表示直接子节点，3表示第3层的子节点，依此类推，数字代表层级）")
    private Integer depth;
}
